package pack0626;

import java.util.Scanner;

public class Person {
    public String name;// 定义属性
    int score;//记录每一句的分数
    String type;//用来记录自己的出拳类型

    public int showHand() {
        Scanner scan = new Scanner(System.in);
        System.out.println("请" + name + "出拳（1，石头 2，剪刀 3，布）");
        int n = scan.nextInt();
        if (n == 1) {
            type = "石头";
        } else if (n == 2) {
            type = "剪刀";
        } else
            type = "布";
        return n;
    }
}
